package com.example.service_vod.util;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author:tjf
 * @Description:
 */
@Component
public class VodConstantUtils implements InitializingBean {
    @Value("${aliyun.vod.access_key_id}")
    private String accessKeyId;
    @Value("${aliyun.vod.access_key_secret}")
    private String accessKeySecret;
    @Value("${aliyun.vod.video_storage_location}")
    private String videoStorageLocation;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;
    public static String VIDEO_STORAGE_LOCATION;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = accessKeyId;
        ACCESS_KEY_SECRET = accessKeySecret;
        VIDEO_STORAGE_LOCATION = videoStorageLocation;
    }
}
